package com.snda.sc.auth.simple;

import java.util.HashMap;
import java.util.Map;

import com.snda.sc.auth.data.GameHost;

/**
 * 对auth.json配置文件的封装。
 * 
 * @author <a href="mailto:seenoevil.cn@gmail.com">李曦</a><br/>
 *         Created at: 2012-10-3 上午10:22:21
 */
public class AppInfo {

	private String key;
	private String secret;
	private String appId;
	private boolean bindHps;
	private String appName;
	private String appUrl;
	private String checkUrl;
	private Map<String, GameHost> gameHosts = new HashMap<>();
	private Map<String, Object> props = new HashMap<>();

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public boolean isBindHps() {
		return bindHps;
	}

	public void setBindHps(boolean bindHps) {
		this.bindHps = bindHps;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getAppUrl() {
		return appUrl;
	}

	public void setAppUrl(String appUrl) {
		this.appUrl = appUrl;
	}

	public String getCheckUrl() {
		return checkUrl;
	}

	public void setCheckUrl(String checkUrl) {
		this.checkUrl = checkUrl;
	}

	public Map<String, GameHost> getGameHosts() {
		return gameHosts;
	}

	public void setGameHosts(Map<String, GameHost> gameHosts) {
		this.gameHosts = gameHosts;
	}

	public void setProperty(String name, Object value) {
		props.put(name, value);
	}

	public Object getProperty(String name) {
		return props.get(name);
	}
}
